CPPFALG = -I ./include/ -g
CPP = g++
OBJ = testProducerConsumer@windows.o Semaphore_t.o producer_consumer.o S_printModule@windows.o

all:testProducerConsumer@windows

testProducerConsumer@windows: $(OBJ)
	$(CPP) $(OBJ) -o testProducerConsumer@windows
	./testProducerConsumer@windows.exe 

testProducerConsumer@windows.o: testProducerConsumer@windows.cpp
	$(CPP) -c testProducerConsumer@windows.cpp -o testProducerConsumer@windows.o

Semaphore_t.o: Semaphore_t.cpp 
	$(CPP) -c Semaphore_t.cpp $(CPPFALG) -o Semaphore_t.o

producer_consumer.o: producer_consumer.cpp 
	$(CPP) -c producer_consumer.cpp $(CPPFALG) -o producer_consumer.o

S_printModule@windows.o: S_printModule@windows.cpp 
	$(CPP) -c S_printModule@windows.cpp $(CPPFALG) -o S_printModule@windows.o

clean:
	del *.o testProducerConsumer@windows.exe

